﻿﻿function StringFormat() {
         if (arguments.length == 0)
             return null;
         var str = arguments[0];
         for (var i = 1; i < arguments.length; i++) {
             var re = new RegExp('\\{' + (i - 1) + '\\}', 'gm');
             str = str.replace(re, arguments[i]);
         }
         return str;
     }
String.prototype.endWith = function (s) {
    if (s == null || s == "" || this.length == 0 || s.length > this.length)
        return false;
    if (this.substring(this.length - s.length) == s)
        return true;
    else
        return false;
    return true;
}
String.prototype.startWith = function (s) {
    if (s == null || s == "" || this.length == 0 || s.length > this.length)
        return false;
    if (this.substr(0, s.length) == s)
        return true;
    else
        return false;
    return true;
}
function __ParseUrl__(__url__)
{
	this.next=function()
    {
		return __url__;
	}
	if(__url__=="/${app}/IndexController/Index.html")
	{
		__url__ = "/${app}/Index.html"; return this.next();
	}
	return __url__;
}
var Url=new function()
{
		this.${app}_IndexController_Index= function()
        {
            var __url__=StringFormat("/${app}/IndexController/Index.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
}